#ifndef SYSSETTINGFORM_H
#define SYSSETTINGFORM_H

#include "models/databasemanager.h"
#include "sitckcontrol/stickcontrol.h"
#include "audiofilewidget.h"
#include "globalsettingwidget.h"
#include "otherwidget.h"
#include "touchbutton.h"
#include "uppersettingwidget.h"
#include <QButtonGroup>
#include <QPushButton>
#include <QTabWidget>
#include <QWidget>
#include <qstandarditemmodel.h>


class SysSettingForm : public QWidget
{
    Q_OBJECT

public:
    explicit SysSettingForm(QWidget *parent = nullptr);

protected:
    void initUI();
    void resizeEvent(QResizeEvent* event) override;
private slots:
    void onSwitchPage(int nID, bool b);
    void hideEvent(QHideEvent *event);
private:
    QTabWidget* m_tabWidget;
    QButtonGroup* m_pButtonGroup = nullptr;

    TouchButton *m_pGlobalBtn = nullptr;
    TouchButton *m_pUpperBtn = nullptr;
    TouchButton *m_pAudioBtn = nullptr;
    TouchButton *m_pOtherBtn = nullptr;

    GlobalSettingWidget* m_pGlobalWidget = nullptr;
    UpperSettingWidget* m_pUpperWidget = nullptr;
    AudioFileWidget* m_pAudioWidget = nullptr;
    OtherWidget* m_pOtherWidget = nullptr;

};

#endif // SYSSETTINGFORM_H
